package main

import (
	"fmt"
)

type PersonInfo struct {
	id   int
	Name string
	Age  int
}

func main() {
	var personDb map[string]PersonInfo
	personDb = make(map[string]PersonInfo)

	personDb["1234"] = PersonInfo{1,"1111",11}
	personDb["123"] = PersonInfo{2,"222",22}

	value,ok := personDb["12"]
	if ok {
		fmt.Println(value.Name)
	} else {
		fmt.Println("person has none")
	}

	value1,ok := personDb["123"]
	if ok {
		fmt.Println(value1.Name)
	}

}
